package com.shiroha.chat.config;

import com.shiroha.common.event.ServiceEventPublisher;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {

    @Bean
    public ServiceEventPublisher serviceEventPublisher(ApplicationEventPublisher eventPublisher) {
        return new ServiceEventPublisher(eventPublisher);
    }
}
